﻿<?php 
	require_once('function/connectDB.php');
	$sql = "SELECT email FROM email WHERE id=".$_POST['id']."";
	$result = mysql_query($sql) or die('Restrict Access');
	//var_dump($_POST['id']); die("fdfs");
	$rows = mysql_fetch_array($result);
	if($result)
	{
		echo $rows['email'];
	}
	else	
	{
		echo 'nonselect';
	}
?>